//
//  main.c
//  mouth
//
//  Created by edz on 2020/6/24.
//  Copyright © 2020 edz. All rights reserved.
//

#include <stdio.h>

int main(){
    int mouth,day=0;
    printf("请输入月份：");
    scanf("%d",&mouth);
    if (mouth == 1 || mouth == 3 || mouth == 5 || mouth == 7 || mouth == 8 || mouth == 10 || mouth == 12) {
        day = 31;
    }
    else if ( mouth == 4 || mouth == 6 || mouth == 9 || mouth == 11){
        day = 30;
    }
    else
        day = 28;
    printf("这个月有%d天\n",day);
    return 0;
}
